package top.withwings.bonus.bonus.pojo;

import top.withwings.bonus.common.pojo.User;

public class FinalBonus {


    private String yearMonth;
    private User salesman;
    private double grossAmount;
    private double singleSum;
    private double makeUpSum;
    private Rate grossAmountRate;
    private double finalResult;



    public static FinalBonus createEmptyInstance(String yearMonth) {

        FinalBonus empty = new FinalBonus();
        empty.setGrossAmount(0);
        empty.setFinalResult(0);
        empty.setYearMonth(yearMonth);
        return empty;
    }

    public String getYearMonth() {
        return yearMonth;
    }

    public void setYearMonth(String yearMonth) {
        this.yearMonth = yearMonth;
    }

    public User getSalesman() {
        return salesman;
    }

    public void setSalesman(User salesman) {
        this.salesman = salesman;
    }


    public double getGrossAmount() {
        return grossAmount;
    }

    public void setGrossAmount(double grossAmount) {
        this.grossAmount = grossAmount;
    }

    public Rate getGrossAmountRate() {
        return grossAmountRate;
    }

    public void setGrossAmountRate(Rate grossAmountRate) {
        this.grossAmountRate = grossAmountRate;
    }

    public double getSingleSum() {
        return singleSum;
    }

    public void setSingleSum(double singleSum) {
        this.singleSum = singleSum;
    }

    public double getMakeUpSum() {
        return makeUpSum;
    }

    public void setMakeUpSum(double makeUpSum) {
        this.makeUpSum = makeUpSum;
    }

    public double getFinalResult() {
        return finalResult;
    }

    public void setFinalResult(double finalResult) {
        this.finalResult = finalResult;
    }
}
